Tag Link | [Integer->BitShiftRight] | Category | Math |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | None (Modifies in place) | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Integer->BitShiftRight] shifts the bits in the base integer right by the number specified in the integer parameter. The bit offset should be between 1 and 64.
[Integer Variable->(BitShiftRight: Bit Offset)]
Required Parameters | |
---|---|
Bit Offset | The number of places to which the base integer should be shifted. |
To shift the bits within an integer:
Use the [Integer->BitShiftRight] tag. The following example shifts the integer 8 (1000) right by 2 bits, the equivalent of dividing the integer by 4, returning 2.
[Variable: 'Result'=8]
[($Result)->(BitShiftRightt: 2)]
[Variable: 'Result']
2